<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ScsgtbarchusuEditDlg" widgetVar="ScsgtbarchusuEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditScsgtbarchusuTitle}">

            <h:form id="ScsgtbarchusuEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{scsgtbarchusuController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditScsgtbarchusuLabel_scsgtbarchusuid}" for="scsgtbarchusuid" />
                        <h:outputText id="scsgtbarchusuid" value="#{scsgtbarchusuController.selected.scsgtbarchusuid}" />

                        <p:outputLabel value="#{myBundle.EditScsgtbarchusuLabel_nombre}" for="nombre" />
                        <p:inputText id="nombre" value="#{scsgtbarchusuController.selected.nombre}" title="#{myBundle.EditScsgtbarchusuTitle_nombre}" required="true" requiredMessage="#{myBundle.EditScsgtbarchusuRequiredMessage_nombre}"/>

                        <p:outputLabel value="#{myBundle.EditScsgtbarchusuLabel_mostrar}" for="mostrar" />
                        <p:selectBooleanCheckbox id="mostrar" value="#{scsgtbarchusuController.selected.mostrar}" title="#{myBundle.EditScsgtbarchusuTitle_mostrar}" required="true" requiredMessage="#{myBundle.EditScsgtbarchusuRequiredMessage_mostrar}"/>

                        <p:outputLabel value="#{myBundle.EditScsgtbarchusuLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{scsgtbarchusuController.selected.observaciones}" title="#{myBundle.EditScsgtbarchusuTitle_observaciones}" required="true" requiredMessage="#{myBundle.EditScsgtbarchusuRequiredMessage_observaciones}"/>

                        <p:outputLabel value="#{myBundle.EditScsgtbarchusuLabel_scsgtbrolesid}" for="scsgtbrolesid" />
                        <p:selectOneMenu id="scsgtbrolesid" value="#{scsgtbarchusuController.selected.scsgtbrolesid}" required="true" requiredMessage="#{myBundle.EditScsgtbarchusuRequiredMessage_scsgtbrolesid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scsgtbrolesController.items}"
                                           var="scsgtbrolesidItem"
                                           itemValue="#{scsgtbrolesidItem}"
                                           itemLabel="#{scsgtbrolesidItem.scsgtbrolesid.toString()}"
                                           />
                            <f:converter binding="#{scsgtbrolesConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{scsgtbarchusuController.save}" value="#{myBundle.Save}" update="display,:ScsgtbarchusuListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,ScsgtbarchusuEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="ScsgtbarchusuEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
